package net.pimpas.web.jsf.components.focus;

import javax.faces.component.UIComponent;
import javax.faces.webapp.UIComponentTag;

public class UIFocusTag extends UIComponentTag {
	
	private String forComponent;
	
	@Override
	protected void setProperties(UIComponent component) {
		UIFocus focus = (UIFocus) component;
		focus.setForComponent(this.getForComponent());
		
		super.setProperties(component);
	}

	@Override
	public String getComponentType() {
		return UIFocus.COMPONENT_TYPE;
	}

	@Override
	public String getRendererType() {
		return UIFocus.COMPONENT_RENDER_TYPE;
	}
	
	public void setFor(String forT) {
		this.setForComponent(forT);
	}
	
	public String getFor( ) {
		return this.getForComponent();
	}

	public String getForComponent() {
		return forComponent;
	}

	public void setForComponent(String forComponent) {
		this.forComponent = forComponent;
	}
}